package com.niiwoo.civet.trade.dto.request.kaola;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 考拉理财还款请求DTO
 *
 * @author lichuanzhi
 * @date 2018/01/06
 */
@Getter
@Setter
public class KaoLaLiCaiRepayRequestDTO implements Serializable{
    private static final long serialVersionUID = -3404931659059280069L;

    @NotBlank(message = "userId-用户id 不可为空")
    private String userId;

    @NotNull(message = "projectId-标的id 不可为空")
    private Long projectId;

    /**
     *  0立即还款，1用户提前结清，2用户逾期还款（可以是部分还款）
     */
    @Range(min = 0,max = 2,message = "还款类型错误")
    private Byte type;

}
